﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace Model
{
    public class Dinner : IAggregateRoot
    {
        public int ID { get; set; }
        [MaxLength(50)]
        public string Title { get; set; }
        public DateTime EventDate { get; set; }
        [MaxLength(50)]
        [Column(TypeName = "varchar")]
        public string Address { get; set; }
        [MaxLength(50)]
        [Column(TypeName = "varchar")]
        public string HostedBy { get; set; }
        [MaxLength(50)]
        public string country { get; set; }

        public virtual ICollection<RSVP> RSVPs { get; set; }
    }
}
